package com.dominator.enums;


import com.dominator.utils.api.ApiMessage;

public enum  ReqEnums  {

    SYS_ERROR("400", "系统异常"),
    REQ_SUCCESS("200", "请求成功"),
    REQ_PARAM_MISS("102", "请求参数缺少"),
    REQ_TOKEN_FALSE("103", "请重新登陆"),
    REQ_INCORRECT_CODE("104", "短信验证码错误"),
    REQ_INCORECT_PIC_CODE("104", "图形验证码错误"),

    REQ_PARAM_ERROR("105", "请求参数错误"),
    REQ_PHONE_EXSIT("105", "手机号已存在"),
    REQ_SMS_LIMIT("105", "发送验证码次数超过限制"),
    REQ_WRONG_VERIFY_CODE("105", "验证码错误"),

    REQ_INVITE_PHONE_NOT_EXSIT("105", "邀请人手机号不存在"),
    REQ_USER_NOT_EXSIT("105", "用户不存在"),
    REQ_WRONG_PASSWORD("105", "用户密码错误"),
    REQ_CREATE_USER_ERROR("105", "创建用户失败"),
    REQ_USER_IS_NOT_VALID("105", "用户已被停用，请联系客服"),

    REQ_RESULT_NULL("106", "请求结果为空"),
    REQ_ORDER_ERROR("107", "订单生成失败"),
    REQ_TRADE_ERROR("109", "交易失败"),
    REQ_UPDATE_ERROR("110", "更新失败"),
    REQ_SMS_ERROR("111", "发送短信失败"),
    REQ_EMAIL_ERROR("112", "发送邮件失败"),

    ACC_IS_NULL("105", "金额不能为空"),
    ACC_ILLEGAL_AMOUNT("105", "金额不合法，请重新输入"),
    ACC_ILLEGAL_POINTS("105", "积分不合法，请重新输入"),

    ACC_NOT_EXSIT("105", "账户不存在"),
    ACC_LACK_OF_BALANCE("105","余额不足"),
    ACC_LACK_OF_POINTS("105","积分不足"),

    WRONG_NUM("105","生成数量不合法"),
    WRONG_POINT("105","积分数量不合法"),

    TICKET_NOT_EXSIT("105","兑换券不存在"),
    TICKET_VERIFICATION("105","兑换券已核销"),

    ENCODE_ERROR("105","加密失败"),
    REQ_ERROR("105","非法请求"),

    MERCHANT_IS_NOT_EXSIT("105","商户不存在"),
    MERCHANT_SECRET_ERROR("105","密钥错误"),
    MERCHANT_IP_ERROR("105","请求ip不合法"),
    MERCHANT_VERIFY_TIMEOUT("105","签名已过期"),
    MERCHANT_VERIFY_ERROR("105","签名错误"),
    MERCHANT_OUT_OF_LIMIT("105","票已售罄，请联系管理员"),

    MERCHANT_ACC_LACK_OF_BALANCE("105","商户余额不足"),
    MERCHANT_ACC_LACK_OF_POINTS("105","商户积分不足"),
    MERCHANT_ACC_IS_NOT_EXSIT("105","商户账户不存在"),


    WECHAT_OPENID_IS_NOT_EXSIT("105","微信openid用户不存在"),
    WECHAT_OPENID_IS_EXSIT("105","微信openid用户已存在"),
    WECHAT_OPENID_IS_BINDING("105","微信openid用户已绑定"),




    WECHAT_GET_OPENID_ERROR("105","微信openid获取失败"),
    WECHAT_ENC_TRUE_NAME_ERROR("105","姓名签名失败"),
    WECHAT_ENC_BANK_NO_ERROR("105","银行卡签名失败"),
    WECHAT_GET_REQUEST_XML_ERROR("105","获取请求xml报文失败"),
    WECHAT_HTTP_CLIENT_RESULT_BANK_ERROR("105","获取请求xml报文失败"),
    WECHAT_MCH_PAY_ERROR("105","支付请求失败"),




    ORDERTYPE_IS_NOT_EXSIT("105", "订单类型不存在"),

    POINTS_IS_NULL("105", "积分不存在"),
    LOT_IS_NOT_EXSIT("105","订单不存在"),
    LOT_IS_WIN("105","订单已返奖"),
    LOT_IS_PAY_SUCCESS("105","订单支付成功"),
    LOT_IS_PAY_FAIED("105","订单支付失败"),
    LOT_IS_NOT_PAY("105","订单未支付"),


    BANK_IS_EXSIT("105","银行卡已存在"),
    BANK_IS_NOT_EXSIT("105","银行卡不存在"),
    BANK_IS_NOT_VALID("105","银行卡已失效"),


    USER_IS_UPGRADED_LOW("105","升级等级不能低于当前等级"),
    UPGRADE_IS_NULL("105","升级等级不能为空"),

    CONSUMPTION_AMOUNT_IS_NULL("105","消费金额不能为空"),


    IDENTIFICATION_IS_FAILURE("105","小票识别失败，请更换小票重新识别"),
    TICKET_IS_IDENTIFICATION("105","您已识别小票，请前往兑彩"),
    TEAM_IS_NOT_EXSIT("105","队伍不存在"),
    TEAM_NOT_LEADER("105","只有队长可以改队名"),
    TEAM_IS_EXSIT("105","队伍已存在"),
    TEAM_NOT_TAKE_PART_IN("105","未参加队伍"),
    UNION_LOGIN_ERROR("105","联合登录失败"),


    SOCKET_METHOD_IS_NOT_EXSIT("105","请求方法不存在"),

    MACHINE_IS_LOGIN("105","机器已登录"),
    MACHINE_IS_NOT_LOGIN("105","机器未登录")

    ;



    /**
     * code
     */
    private String code;
    /**
     * msg
     */
    private String msg;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private ReqEnums(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return new ApiMessage(this.code,this.msg).toString();
    }
}
